package face.pay.task.sharing;


import face.pay.task.sharing.service.IsharingAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SharingAccountTask {

    @Autowired
    private IsharingAccountService isharingAccountService;

    /**
     * 定时更新添加分账对象
     */
    @Scheduled(cron = "0 0 0/1 * * ?")
    public void sharingAccount(){
        isharingAccountService.addSharingAccount();
    }
}
